//
//  AccessTool.m
//  新浪微博
//
//  Created by hbl on 16/2/21.
//  Copyright © 2016年 hbl. All rights reserved.
//

#import "AccessTool.h"

@implementation AccessTool
+ (Access *)getTheAccess
{
    NSString *doc = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
    NSString *filePath = [doc stringByAppendingPathComponent:@"access.data"];
    Access *access = [NSKeyedUnarchiver unarchiveObjectWithFile:filePath];
    return access;
}
@end
